package com.ysd.lis.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.sql.Timestamp;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 培训知识预览时间统计
 * </p>
 *
 * @author LiuQi
 * @since 2024-03-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("WK_CONTENT_VIEW_TIME")
public class WkContentViewTime extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @TableField("USER_ID")
    private String userId;

    /**
     * 知识库ID
     */
    @TableField("KNOWLEDGE_ID")
    private String knowledgeId;

    /**
     * 知识内容ID
     */
    @TableField("KNOWLEDGE_CONTENT_ID")
    private String knowledgeContentId;

    /**
     * 开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    @TableField("START_TIME")
    private Timestamp startTime;

    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    @TableField("END_TIME")
    private Timestamp endTime;

    /**
     * 时长
     */
    @TableField("DURATION")
    private Long duration;

}
